package com.Java.train.business.service;

import com.Java.train.business.entity.DTO.ConfirmOrderReqDTO;
import com.Java.train.business.req.ConfirmOrderDoReq;
import com.Java.train.common.response.CommonResp;
import com.Java.train.business.entity.ConfirmOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.Java.train.common.response.PageResp;
import com.Java.train.business.entity.DTO.ConfirmOrderDTO;
import com.Java.train.business.req.ConfirmOrderQueryReq;
import java.util.List;

/**
* @author luomoxingchen
* @since 2024-10-04
*/
public interface ConfirmOrderService extends IService<ConfirmOrder> {

    /**
    * ConfirmOrder详情
    * @param
    * @return
    */
    PageResp<ConfirmOrderDTO> queryList(ConfirmOrderQueryReq confirmOrderQueryReq);

    /**
    * ConfirmOrder保存和修改
    * @param confirmOrder 根据需要进行传值
    * @return
    */
    CommonResp<Object> modify(ConfirmOrder confirmOrder);

    /**
    * ConfirmOrder删除
    * @param ids
    * @return
    */
    CommonResp<Object> remove(String ids);

    void doConfim(ConfirmOrderReqDTO confirmOrderReqDTO);

    Integer queryOrderCount(Long id);

    Long cancelOrder(Long id);
}


